<template>
  <div class="hello">
    <h1 @click="fn">{{ value }}</h1>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    value: String
  },
  methods: {
    fn() {
      this.$emit('input', 'hello vue')
    }
  }
}
</script>